<ion-header>
  <ion-toolbar>
    <ion-title>
      Inputs test
    </ion-title>
  </ion-toolbar>
</ion-header>
<ion-content>
  <p>Change Detections: <span id="counter">{{counter()}}</span></p>
  <ion-list>

    <ion-item>
      <ion-label>DateTime</ion-label>
      <ion-datetime [(ngModel)]="datetime" min="1994-03-14" max="2017-12-09" display-format="MM/DD/YYYY"></ion-datetime>
      <ion-note slot="end" id="datetime-note">{{datetime}}</ion-note>
    </ion-item>

    <ion-item color="dark">
      <ion-label>DateTime Mirror</ion-label>
      <ion-datetime [(ngModel)]="datetime" min="1994-03-14" max="2017-12-09" display-format="MM/DD/YYYY"></ion-datetime>
      <ion-note slot="end">{{datetime}}</ion-note>
    </ion-item>

    <ion-item>
      <ion-select label="Select" [(ngModel)]="select" id="game-console">
        <ion-select-option value="">No Game Console</ion-select-option>
        <ion-select-option value="nes">NES</ion-select-option>
        <ion-select-option value="n64" selected>Nintendo64</ion-select-option>
        <ion-select-option value="ps">PlayStation</ion-select-option>
        <ion-select-option value="genesis">Sega Genesis</ion-select-option>
        <ion-select-option value="saturn">Sega Saturn</ion-select-option>
        <ion-select-option value="snes">SNES</ion-select-option>
      </ion-select>
      <ion-note slot="end" id="select-note">{{select}}</ion-note>
    </ion-item>

    <ion-item color="dark">
      <ion-select label="Select Mirror" [(ngModel)]="select">
        <ion-select-option value="">No Game Console</ion-select-option>
        <ion-select-option value="nes">NES</ion-select-option>
        <ion-select-option value="n64" selected>Nintendo64</ion-select-option>
        <ion-select-option value="ps">PlayStation</ion-select-option>
        <ion-select-option value="genesis">Sega Genesis</ion-select-option>
        <ion-select-option value="saturn">Sega Saturn</ion-select-option>
        <ion-select-option value="snes">SNES</ion-select-option>
      </ion-select>
      <ion-note slot="end">{{select}}</ion-note>
    </ion-item>

    <ion-item>
      <ion-toggle [(ngModel)]="toggle" slot="end">
        Toggle
      </ion-toggle>
      <ion-note slot="end" id="toggle-note">{{toggle}}</ion-note>
    </ion-item>

    <ion-item color="dark">
      <ion-toggle [(ngModel)]="toggle" slot="end">
        Toggle Mirror
      </ion-toggle>
      <ion-note slot="end">{{toggle}}</ion-note>
    </ion-item>

    <ion-item>
      <ion-input label="Input" [(ngModel)]="input"></ion-input>
      <ion-note slot="end" id="input-note">{{input}}</ion-note>
    </ion-item>

    <ion-item color="dark">
      <ion-input label="Input Mirror" [(ngModel)]="input"></ion-input>
      <ion-note slot="end">{{input}}</ion-note>
    </ion-item>

    <ion-item>
      <ion-checkbox [(ngModel)]="checkbox" slot="start" id="first-checkbox">
        Checkbox
      </ion-checkbox>
      <ion-note slot="end" id="checkbox-note">{{checkbox}}</ion-note>
    </ion-item>

    <ion-item color="dark">
      <ion-checkbox [(ngModel)]="checkbox" slot="start">
        Checkbox Mirror
      </ion-checkbox>
      <ion-note slot="end">{{checkbox}}</ion-note>
    </ion-item>

  </ion-list>
  <p>
    <ion-button (click)="setValues()" id="set-button">Set values</ion-button>
    <ion-button (click)="resetValues()" id="reset-button">Reset values</ion-button>
  </p>
</ion-content>
